//
//  HomePageCollectionViewCell.m
//  InSuger
//
//  Created by dllo on 15/11/28.
//  Copyright © 2015年 Dior_3g. All rights reserved.
//

#import "HomePageCollectionViewCell.h"

@implementation HomePageCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        self.itemImageView = [[UIImageView alloc] initWithFrame:self.contentView.frame];
        [self.contentView addSubview:self.itemImageView];
        
    }
    
    return self;
    
}

- (void)setModel:(HomePageCollectionViewModel *)model {
    
    if (_model != model) {
        [self.itemImageView sd_setImageWithURL:[NSURL URLWithString:model.pic1] placeholderImage:[UIImage imageNamed:@"PlaceHolder.png"]];
        
    }
    
}


@end
